/*CodeBuilder v1.0.4 by 2022/3/9 18:06:49 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Cfg_Dict : EntityBase
	{
		private System.String _CfgType;
		/// <summary>
		/// 配置类型
		/// </summary>
		[Entity(CNCfgType, 0, true)]
		public System.String CfgType
		{
			get { return _CfgType; }
			set
			{
				if (!OnPropertyChanged(CNCfgType, _CfgType, value)) return;
				_CfgType = value;
				SetFieldChanged(CNCfgType) ;
			}
		}

		private System.String _CfgId;
		/// <summary>
		/// CfgId
		/// </summary>
		[Entity(CNCfgId, 1, true, IsPrimaryKey = true)]
		public System.String CfgId
		{
			get { return _CfgId; }
			set
			{
				if (!OnPropertyChanged(CNCfgId, _CfgId, value)) return;
				_CfgId = value;
				SetFieldChanged(CNCfgId) ;
			}
		}

		private System.String _CfgCaption;
		/// <summary>
		/// CfgCaption
		/// </summary>
		[Entity(CNCfgCaption, 2, true)]
		public System.String CfgCaption
		{
			get { return _CfgCaption; }
			set
			{
				if (!OnPropertyChanged(CNCfgCaption, _CfgCaption, value)) return;
				_CfgCaption = value;
				SetFieldChanged(CNCfgCaption) ;
			}
		}

		private System.String _CfgValue;
		/// <summary>
		/// CfgValue
		/// </summary>
		[Entity(CNCfgValue, 3)]
		public System.String CfgValue
		{
			get { return _CfgValue; }
			set
			{
				if (!OnPropertyChanged(CNCfgValue, _CfgValue, value)) return;
				_CfgValue = value;
				SetFieldChanged(CNCfgValue) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 4)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		#region 字段名的定义
		public const string CNCfgType = "CfgType";
		public const string CNCfgId = "CfgId";
		public const string CNCfgCaption = "CfgCaption";
		public const string CNCfgValue = "CfgValue";
		public const string CNRemark = "Remark";
		#endregion

	}
}
